<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>kq.1.06AliOss上传适配测试</title>
<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
<script src="../kq.1.06.dev.js"></script>
</head>

<body>
<button id="simpleUpload">点我简单的上传</button>
</body>
<script>
//http://post.oss-cn-hangzhou.aliyuncs.com
$Q('#simpleUpload').click(function(){
	var alihost = 'http://chuanjiafeng.oss-cn-hangzhou.aliyuncs.com';
	$Q.upload({
		action:alihost,
		data:{
			name: 'test_cover.jpg',
			key: '',
			policy:'',
			OSSAccessKeyId:'',
			success_action_status: 200,
			signature: '',
		},
		uploadname:'file',//配置请求file的请求名
		success:function(rs){
			console.log(rs);	
		},
		error:function(){
			
		},
		//进度条
		progress:function(rs){
			$Q.msg({
				text:'已上传'+rs.perSize,
				position:'br',	
			})
		},
	});
});
</script>
</html>
